package cn.bone.ou.myuser.param;

import lombok.Data;

import javax.validation.constraints.NotNull;

public class MyParam {

    @Data
    public static class ListParam{
        @NotNull
        private Integer start;
        @NotNull
        private Integer num;
        private String name;
        private String regionNo;
        private String startTime;
        private String endTime;
        private Integer usable;
        private Integer mng;
    }

    @Data
    public static class UsableParam{
        @NotNull
        private Integer id;
        @NotNull
        private Integer usable;
    }

    @Data
    public static class AddParam {
        @NotNull
        private String name;
        @NotNull
        private String regionNo;
        @NotNull
        private String address;
        private Integer houseNum;
        private Double buildAreaNum;
        private Double exclusiveArea;

    }

    @Data
    public static class ModifyParam {
        @NotNull
        private Integer id;
        @NotNull
        private String name;
        @NotNull
        private String regionNo;
        @NotNull
        private String address;
        private Integer houseNum;
        private Double buildAreaNum;
        private Double exclusiveArea;
    }

    @Data
    public static class ListMngParam {
        @NotNull
        private Integer start;
        @NotNull
        private Integer num;
        @NotNull
        private Integer communityId;
    }

    @Data
    public static class UsableMngParam {
        @NotNull
        private Integer mngId;
        @NotNull
        private Integer usable;
    }

    @Data
    public static class DeleteMngParam {
        @NotNull
        private Integer mngId;
        @NotNull
        private Integer isDelete;
    }

    @Data
    public static class ResetPassParam {
        @NotNull
        private Integer mngId;
        @NotNull
        private String password;
    }

    @Data
    public static class AddMngParam {
        private Integer communityId;    //小区编号
        private String phoneNum;        //手机号
        private String password;        //密码
        private String realName;        //姓名
    }

    @Data
    public static class ModifyMngParam {
        private Integer mngId;
        private Integer communityId;
        private String phoneNum;
        private String realName;
    }
}
